/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package facade;

import bean.Label;
import storage.LabelRecordStore;

/**
 *
 * @author penyihirkecil
 */
public class LabelFacade {
    private LabelRecordStore labelRS;

    public LabelRecordStore getLabelRS() {
        if(labelRS==null){
            labelRS = new LabelRecordStore();
        }
        return labelRS;
    }

    public void addLabel(Label category) {
        getLabelRS().addLabel(category);
	}

    public void updateLabel(int index, Label label) {
        getLabelRS().updateLabel(index, label);
	}

    public void deleteLabel(int index) {
        getLabelRS().deleteLabel(index);
	}

    public void closeLabelRS() {
        getLabelRS().closeRecStore();
	}
}
